import { NavBar } from "antd-mobile"
import "./index.less"
import { useNavigate } from "react-router-dom"
function Header({ title = "" }) {
  const navigate = useNavigate()
  return (
    <div className="headerWarp">
      <div className="block">
        <NavBar onBack={() => navigate(-1)}>{title}</NavBar>
      </div>
    </div>
  )
}

export default Header
